package com.i2works.smartluolong.web.service.fooddrug.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.i2works.smartluolong.utils.basecommon.BaseCommonServiceImpl;
import com.i2works.smartluolong.utils.exception.DAOException;
import com.i2works.smartluolong.utils.exception.ServiceException;
import com.i2works.smartluolong.web.dal.fooddrug.dao.IFooddrugApplyDeviceDAO;
import com.i2works.smartluolong.web.entity.fooddrug.FooddrugApplyDeviceDO;
import com.i2works.smartluolong.web.entity.fooddrug.FooddrugApplyDeviceQuery;
import com.i2works.smartluolong.web.service.fooddrug.IFooddrugApplyDeviceService;

/**
 * @author Liu Yapeng
 * @date 2018-10-73 10:01:25
 */
@Service("fooddrugApplyDeviceService")
public class FooddrugApplyDeviceServiceImpl extends BaseCommonServiceImpl<FooddrugApplyDeviceQuery,FooddrugApplyDeviceDO>implements IFooddrugApplyDeviceService {
   @Autowired
   private IFooddrugApplyDeviceDAO fooddrugApplyDeviceDAO;
   
	@Override
	public void deleteByApplyId(Integer applyId) throws ServiceException {
		try {
			fooddrugApplyDeviceDAO.deleteByApplyId(applyId);
		} catch (DAOException e) {
			e.printStackTrace();
		}
		
	}

}
